<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:if test="${userData == null }">
<div id="noDataDiv" class="alert alert-warning">
	<button type="button" class="close" data-dismiss="alert">
		<i class="ace-icon fa fa-times"></i>
	</button>
	<c:if test="${msg == null }">
	查询不到数据!
	</c:if>
	<c:if test="${msg != null }">
	${msg}
	</c:if>
	<br>
</div>
</c:if>
<c:if test="${userData != null }">
<div class="col-xs-12 col-sm-4 center"></div>
<div class="col-xs-12 col-sm-3 center">
	
	<div>
		<span class="profile-picture">
			<img id="avatar"
			onerror="onerror=null;src='https://res.wx.qq.com/a/wx_fed/common_assets/16120602/win_weixin21/images/phone_logo2x.png'"
			class="editable img-responsive editable-click editable-empty" 
			style="max-width: 182px; max-height: 202px;width:122px; height:122px"
			alt="${userData.nickName }" 
			src="${userData.userImg }"></img>
		</span>

		<div class="space-4"></div>

		<div class="width-80 label label-info label-xlg arrowed-in arrowed-in-right">
			<div class="inline position-relative">
				<a href="#" class="user-title-label dropdown-toggle" data-toggle="dropdown">
					<c:if test="${userData.online == 0 }">
					<i data-rel="tooltip" data-original-title="离线" class="ace-icon fa fa-circle light-grey"></i>
					</c:if>
					<c:if test="${userData.online == 1 }">
					<i data-rel="tooltip" data-original-title="在线" class="ace-icon fa fa-circle light-green"></i>
					</c:if>
					&nbsp;
					<span class="white">${userData.nickName }（${userData.userId}）</span>
				</a>
			</div>
		</div>
	</div>

	<div class="space-6"></div>

	<div class="profile-user-info profile-user-info-striped">
		<!-- 
		<div class="profile-info-row">
			<div class="profile-info-name"> 邀请码</div>

			<div class="profile-info-value">
				<span class="editable editable-click" id="username">1</span>
			</div>
		</div>
		<div class="profile-info-row">
			<div class="profile-info-name"> 上级 </div>

			<div class="profile-info-value">
				<span class="editable editable-click" id="username">${userData.parentId }</span>
			</div>
		</div>

		<div class="profile-info-row">
			<div class="profile-info-name"> 上次登陆时间 </div>
			<div class="profile-info-value">
				<span class="editable editable-click" id="age">1</span>
			</div>
		</div>
		 -->
		 <div class="profile-info-row">
			<div class="profile-info-name">当前余额 </div>
			<div class="profile-info-value">
				<span class="editable editable-click" id="username">${userData.score }</span>
			</div>
		</div>
	</div>

	<div class="hr hr16 dotted"></div>
</div>


<div class="col-xs-9" style="margin-top:5px;" id='profileDataList'>
</div>
</c:if>